<%--
  Created by IntelliJ IDEA.
  User: brss
  Date: 2017/8/4
  Time: 17:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">

    <title>hyblog后台管理系统</title>

    <!-- Bootstrap core CSS -->
    <link href="/css/bootstrap.min.css" rel="stylesheet">
    <!-- bootstrap-table插件的css -->
    <link href="/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
    <!-- 表单验证插件的css -->
    <link href="/bootstrapvalidator/bootstrapValidator.min.css" rel="stylesheet">
    <!-- 文件上传的css -->
    <link href="/fileinput/fileinput.min.css" media="all" rel="stylesheet" type="text/css"/>
    <!-- 本地css -->
    <link href="/css/adminHome.css" rel="stylesheet">
    <style>
        .panel-group {
            max-height: 770px;
            overflow: auto;
        }

        .leftMenu {
            margin: 10px;
            margin-top: 5px;
        }

        .leftMenu .panel-heading {
            font-size: 14px;
            padding-left: 20px;
            height: 36px;
            line-height: 36px;
            color: white;
            position: relative;
            cursor: pointer;
        }

        /*转成手形图标*/
        .leftMenu .panel-heading span {
            position: absolute;
            right: 10px;
            top: 12px;
        }

        .leftMenu .menu-item-left {
            padding: 2px;
            background: transparent;
            border: 1px solid transparent;
            border-radius: 6px;
        }

        .leftMenu .menu-item-left:hover {
            background: #C4E3F3;
            border: 1px solid #1E90FF;
        }
    </style>

</head>

<body>

<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" href="#">hyblog</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav navbar-right">
                <li><a href="/logout">安全退出</a></li>
            </ul>
        </div>
    </div>
</nav>

<div class="container-fluid">
    <div class="row">
        <div class="col-md-2 sidebar">
            <div class="panel-group table-responsive" role="tablist">
                <!-- 一个分组开始 -->
                <div class="panel panel-primary leftMenu">
                    <!-- 利用data-target指定要折叠的分组列表 -->
                    <div class="panel-heading" id="collapseListGroupHeading1" data-toggle="collapse"
                         data-target="#collapseListGroup1" role="tab">
                        <h4 class="panel-title">
                            文章管理
                            <span class="glyphicon glyphicon-chevron-down right"></span>
                        </h4>
                    </div>
                    <!-- .panel-collapse和.collapse标明折叠元素 .in表示要显示出来 -->
                    <div id="collapseListGroup1" class="panel-collapse collapse" role="tabpanel"
                         aria-labelledby="collapseListGroupHeading1">
                        <ul class="list-group">
                            <li class="list-group-item">
                                <!-- 利用data-target指定URL -->
                                <button class="menu-item-left" id="adminPubArticle">
                                    <span class="glyphicon glyphicon-triangle-right"></span>发表博文
                                </button>
                            </li>
                            <li class="list-group-item">
                                <button class="menu-item-left"  id="adminManageArticle">
                                    <span class="glyphicon glyphicon-triangle-right"></span>管理博文
                                </button>
                            </li>

                        </ul>
                    </div>
                </div>
                <!-- 一个分组结束 -->
                <div class="panel panel-primary leftMenu">
                    <div class="panel-heading" id="collapseListGroupHeading2" data-toggle="collapse"
                         data-target="#collapseListGroup2" role="tab">
                        <h4 class="panel-title">
                            分类/标签管理
                            <span class="glyphicon glyphicon-chevron-down right"></span>
                        </h4>
                    </div>
                    <div id="collapseListGroup2" class="panel-collapse collapse" role="tabpanel"
                         aria-labelledby="collapseListGroupHeading2">
                        <ul class="list-group">
                            <li class="list-group-item">
                                <button class="menu-item-left"  id="adminManageCategory">
                                    <span class="glyphicon glyphicon-triangle-right"></span>分类管理
                                </button>
                            </li>
                            <li class="list-group-item">
                                <button class="menu-item-left" id="adminManageTag">
                                    <span class="glyphicon glyphicon-triangle-right"></span>标签管理
                                </button>
                            </li>
                        </ul>
                    </div>
                </div>

                <!-- 一个分组开始 -->
                <div class="panel panel-primary leftMenu">
                    <!-- 利用data-target指定要折叠的分组列表 -->
                    <div class="panel-heading" id="collapseListGroupHeading3" data-toggle="collapse"
                         data-target="#collapseListGroup3" role="tab">
                        <h4 class="panel-title">
                            其他设置
                            <span class="glyphicon glyphicon-chevron-down right"></span>
                        </h4>
                    </div>
                    <!-- .panel-collapse和.collapse标明折叠元素 .in表示要显示出来 -->
                    <div id="collapseListGroup3" class="panel-collapse collapse" role="tabpanel"
                         aria-labelledby="collapseListGroupHeading3">
                        <ul class="list-group">
                            <li class="list-group-item">
                                <!-- 利用data-target指定URL -->
                                <button class="menu-item-left" data-target="test2.html">
                                    <span class="glyphicon glyphicon-triangle-right"></span>发表博文
                                </button>
                            </li>
                            <li class="list-group-item">
                                <button class="menu-item-left">
                                    <span class="glyphicon glyphicon-triangle-right"></span>管理博文
                                </button>
                            </li>
                            <li class="list-group-item">
                                <button class="menu-item-left">
                                    <span class="glyphicon glyphicon-triangle-right"></span>草稿
                                </button>
                            </li>
                        </ul>
                    </div>
                </div>
                <!-- 一个分组结束 -->
            </div>
        </div>

        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
            <div id="main-content">
            <h1 class="page-header">欢迎来到hyblog后台管理系统</h1>
            </div>
        </div>
    </div>
</div>

<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<!-- jquery插件 -->
<script src="/jquery/jquery-3.2.1.min.js"></script>
<!-- bootstrap-table插件 -->
<script src="/bootstrap-table/bootstrap-table.min.js"></script>
<script src="/bootstrap-table/bootstrap-table-zh-CN.js"></script>
<!-- 文件上传插件 -->
<script src="/fileinput/fileinput.min.js" type="text/javascript"></script>
<script src="/fileinput/zh.js" type="text/javascript"></script>
<!-- 表单验证插件插件 -->
<script src="/bootstrapvalidator/bootstrapValidator.min.js"></script>
<script src="/bootstrapvalidator/zh_CN.js"></script>

<!-- ckeditor富文本编辑器插件 -->
<script type="text/JavaScript" src="/ckeditor/ckeditor.js"></script>
<!-- bootstrap核心js -->
<script src="/js/bootstrap.min.js"></script>


<script type="text/javascript">
    $(function () {
        $(".panel-heading").click(function (e) {
            /*切换折叠指示图标*/
            $(this).find("span").toggleClass("glyphicon-chevron-down");
            $(this).find("span").toggleClass("glyphicon-chevron-up");
        });
        //发表博文按钮点击事件的绑定
        $("#adminPubArticle").click(function (e) {
            $("#main-content").load("/admin/adminArticleForm?type=new");
        });
        //管理博文点击事件的绑定
        $("#adminManageArticle").click(function (e) {
            $("#main-content").load("/admin/adminManageArticle");
        });
        //分类管理点击事件的绑定
        $("#adminManageCategory").click(function (e) {
            $("#main-content").load("/admin/adminManageCategory");
        });
        //标签管理点击事件的绑定
        $("#adminManageTag").click(function (e) {
            $("#main-content").load("/admin/adminManageTag");
        });
    });
</script>
</body>
</html>


